<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <?php
    session_start();
    if (!isset($_SESSION['userid']))
    {
        echo"User not logged in";
        echo"</html>";
        exit();
    }
    if (isset($_POST['logout']))
    {
        include 'ClassLibs/statics.php';
        vLogout();
        header("Location: index.php");
    }
    ?>
    <head>
        <link rel="stylesheet" type="text/css" href="index_style.css"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <form method="POST" action="BlogMain.php">
            <input type="submit" name="blogmain" value="Back to blog main"/>
        </form>
        <form method="POST">
            <input type="submit" name="logout" value="Log out"/>
        </form>
        <form method="POST" action="Results.php">
            <table>
                <tr>
                    <td>Searching By Date</td>
                </tr>
                <tr>
                    <td><input type="text" name="date" maxlength="50"/></td>
                    <td><input type="submit" name="search" value="Search"/></td>
                </tr>
                <tr>
                    <td>Proper format is (YYYY-mm-dd) e.g(2012-03-16)</td>
                </tr>
            </table>
        </form>
    </body>
</html>
